Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: enable push to NPM registry #452

Merged
merged 1 commit into from
Jan 30, 2024
Merged

Conversation

smoya
Copy link
Member

@smoya smoya commented Jan 30, 2024

Description

We never published our NPM package to NPM registry. As it is the first time we do, we need to specify that the package (scoped package) is public, otherwise it will be considered as restricted and our push command in CI will fail, as in here.

More info: https://docs.npmjs.com/creating-and-publishing-scoped-public-packages#publishing-scoped-public-packages

We have several ways of doing this, we could just publish manually our first version to NPM, but that's not pretty cool since we would need to ask someone with the credentials (NPM TOKEN) to do.
Instead, we can just add this .npmrc file with the right config to tell NPM this is a public scoped package. Alternatively, we could add a config for semantic-release, but I believe this should be in the .npmrc since it is purely related to NPM.

Copy link

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@smoya
Copy link
Member Author

smoya commented Jan 30, 2024

@BOLT04 @magicmatatjahu Unblocking CI ASAP requires me to bypass the PR protection requirements so I can merge without your +1. If you believe this should not be here, please open a PR with the revert.

@smoya smoya merged commit 111efa7 into asyncapi:master Jan 30, 2024
19 checks passed
@smoya smoya deleted the feat/deployToNPM branch January 30, 2024 10:23
@asyncapi-bot
Copy link
Contributor

🎉 This PR is included in version 0.16.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants